package utilities;

import java.util.Calendar;
import java.text.SimpleDateFormat;

/**
 * Created by IntelliJ IDEA.
 * User: raj.chhabra
 * Date: Feb 15, 2011
 * Time: 7:11:52 PM
 * To change this template use File | Settings | File Templates.
 */
public class DateUtils {

    public static String now(String dateFormat) {
        Calendar cal = Calendar.getInstance();
        SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
        return sdf.format(cal.getTime());

    }
}
